package com.myBase.core.common.util;

import java.math.BigDecimal;

/**
 * 
 *
 */
public class ErrorConst {
    // 成功
    public final static String SUCESS = "000000";

    public final static String SUCESS_M = "成功";

    // 失败
    public final static String ERROR_W = "MW0000";

    //通用失败
    public final static String ERROR = "ME0000";

    //非登录状态
    public final static String LOGIN_OUT = "M00003";

    public final static String LOGIN_OUT_M = "用户未登录";

    // 后台较验没通过
    public final static String BACK_CHECK = "M00004";

    public final static String BACK_CHECK_M = "后台较验未通过";

    // 签名验证失败
    public final static String SIGN_ERROR = "M00005";

    public final static String SIGN_ERROR_M = "签名验证失败";

    public final static String PHONEVCODE_FAILE = "M00007";

    public final static String PHONEVCODE_FAILE_M = "手机验证码错误或失效";

    // 手机已被其他用户绑定
    public final static String PHONE_EXIST = "M00011";

    public final static String PHONE_EXIST_M = "手机已被其他用户绑定";

    //帐户已在其他无线设备上登录
    public final static String SOURCEID_NOTSAME = "M00012";

    public final static String SOURCEID_NOTSAME_M = "帐户已在其他无线设备上登录";

    // 用户名密码错误
    public final static String USER_PWD_ERROR = "M01001";

    public final static String USER_PWD_ERROR_M = "用户名或密码错误";

    // 永久锁定
    public final static String PERMANENT_LOCK = "M01002";

    public final static String PERMANENT_LOCK_M = "该用户已被管理员永久锁定";

    // 暂时锁定，输入一定次数后被锁定
    public final static String SHORT_LOCK = "M01003";

    public final static String SHORT_LOCK_M = "多次登录失败，请找回密码或20分钟后再试.";

    // token格式错误
    public final static String TOKEN_STYLE_ERROR = "M01004";

    public final static String TOKEN_STYLE_ERROR_M = "token格式错误";

    // token登录失败
    public final static String TOKEN_LOGIN_FAILE = "M01005";

    // 未知错误
    public final static String UNKNOWN_ERROR = "MW0000";

    public final static String UNKNOWN_ERROR_M = "未知错误";

    // 报文格式有误
    public final static String FORMAT_ERROR = "M00001";

    public final static String FORMAT_ERROR_M = "报文格式有误";

    // 1分钟只能发送一次
    public final static String ONEMIN_SENDONE = "M03001";

    public final static String ONEMIN_SENDONE_M = "1分钟只能发送一次";

    // 手机不存在
    public final static String PHONE_NOTEXIST = "M03002";

    public final static String PHONE_NOTEXIST_M = "该手机不存在";

    // 规定时间内发送次数过多 目前1分钟请允许各种业务加起来20次
    public final static String SENDMESS_TOMANY = "M03003";

    public final static String SENDMESS_TOMANY_M = "1分钟内发送次数过多";

    //投资金额不能

    // 发送失败
    public final static String SENDVCODE_FAILE = "M03004";

    public final static String SENDVCODE_FAILE_M = "发送手机验证码失败";

    // 手机验证10分钟错误验证5次。
    public final static String PHONEVCODE_FAILE_MANY = "M03005";

    public final static String PHONEVCODE_FAILE_MANY_M = "手机验证码错误或已失效.";

    // 找回登录密码失败
    public final static String FIND_LONGPWD_FAILE = "M03006";

    public final static String FIND_LONGPWD_FAILE_M = "找回登录密码失败";

    // 更新登录密码失败
    public final static String UPDATE_LONGPWD_FAILE = "M03007";

    public final static String UPDATE_LONGPWD_FAILE_M = "更新登录密码失败";

    // 更新支付密码失败
    public final static String UPDATE_PAYPWD_FAILE = "M03008";

    public final static String UPDATE_PAYPWD_FAILE_M = "更新支付密码失败";

    // 修改手机失败
    public final static String UPDATE_MOBILE_FAILE = "M03009";

    public final static String UPDATE_MOBILE_FAILE_M = "修改手机失败";

    // 身份证号错误
    public final static String CARDNO_ERROR = "M03010";

    public final static String CARDNO_ERROR_M = "身份证号错误";

    // 支付密码不能与登录密码相同
    public final static String PAYPWD_LOGINPWD_SAME = "M03011";

    public final static String PAYPWD_LOGINPWD_SAME_M = "支付密码不能与登录密码相同";

    // 新手机验证码错误或已经过期
    public final static String NEWPHONE_VCODE_ERROR = "M03012";

    public final static String NEWPHONE_VCODE_ERROR_M = "新手机验证码错误或失效";

    // 原手机验证码错误或已经过期
    public final static String OLDPHONE_VCODE_ERROR = "M03013";

    public final static String OLDPHONE_VCODE_ERROR_M = "原手机验证码错误或失效";

    // 获取用户失败
    public final static String USER_IS_FAIL = "M03014";

    public final static String USER_IS_FAIL_M = "获取用户失败";

    public final static String VERIFY_MASK_ERROR = "M00008";

    public final static String VERIFY_MASK_ERROR_M = "抱歉！还需完成认证才可投资！";

    public final static String VERIFY_PAYPWD_ERROR = "M00009";

    public final static String VERIFY_PAYPWD_ERROR_M = "支付密码错误。";

    public final static String PAYPWD_LOCKED_ERROR = "M00010";

    public final static String PAYPWD_LOCKED_ERROR_M = "支付密码多次错误已被锁定。您可以重置密码或20分钟后再试。";

    public final static String VERIFY_INVESTAMOUNT_ERROR = "M02001";

    public final static String VERIFY_INVESTAMOUNT_ERROR_M = "输入份数有误。";

    public final static String VERIFY_LOANOPEN_ERROR = "M02002";

    public final static String VERIFY_LOANOPEN_ERROR_M = "抱歉！标已经被抢光了！";

    public final static String VERIFY_BUYLIMIT_ERROR = "M02003";

    public final static String VERIFY_BUYLIMIT_ERROR_M = "抱歉，超过每人限购份数！";

    public final static String VERIFY_USERAMOUNT_ERROR = "M02005";

    public final static String VERIFY_USERAMOUNT_ERROR_M = "抱歉，账户余额不足！";

    public final static String VERIFY_LEFTAMOUNT_ERROR = "M02004";

    public final static String VERIFY_LEFTAMOUNT_ERROR_M = "抱歉，标的份额不足，请调整投资份额！";

    public final static String VERIFY_LOANOPENTIME_ERROR = "M02006";

    public final static String VERIFY_LOANOPENTIME_ERROR_M = "招标还没开始！";

    public final static String VERIFY_LOANENDTIME_ERROR = "M02007";

    public final static String VERIFY_LOANENDTIME_ERROR_M = "招标已经结束！";

    public final static String VERIFY_PERSONMAIN_NOT_INVESTSELF_ERROR = "M02008";

    public final static String VERIFY_PERSONMAIN_NOT_INVESTSELF_ERROR_M = "不能购买自己融资的标。";

    public final static String VERIFY_RESTRICTRULE_ERROR = "A02010";

    public final static String VERIFY_RESTRICTRULE_ERROR_M = "您没有购买权限！";

    public final static String VERIFY_RESTRICTRULE_ERROR_M_2 = "亲，该产品为专享产品，您可以选择其他产品哟";

    public final static String VERIFY_RESTRICTRULE_ERROR_M_3 = "亲，该产品不在活动时间范围内";

    public final static String VERIFY_RESTRICTRULE_MOBILEONLY_ERROR = "A02013";

    public final static String VERIFY_RESTRICTRULE_MOBILEONLY_ERROR_M = "您投资的项目为手机专享项目。请通过手机参与投资！";

    public final static String VERIFY_RESTRICTRULE_NEW_ERROR = "A02009";

    public final static String VERIFY_RESTRICTRULE_NEW_ERROR_M = "您投资的项目为新手专享项目，您不符合投资条件。请选择其他项目投资！";

    public final static String VERIFY_EXCLUSIVE_ENTERPRISE_ERROR = "A02014";

    public final static String VERIFY_EXCLUSIVE_ENTERPRISE_ERROR_M = "您投资的项目为企业专享项目，您不符合投资条件。请绑定企业专享码！";

    public final static String VERIFY_INVESTAMOUNT_2_ERROR = "A02101";

    public final static String VERIFY_INVESTAMOUNT_2_ERROR_M = "输入金额有误。";

    public final static String VERIFY_MINBUYLIMIT_2_ERROR = "A02108";

    public final static String VERIFY_MINBUYLIMIT_2_ERROR_M = "抱歉，购买金额小于起投金额！";

    //投资剩余不能小于递增金融 
    public final static String VERIFY_LEFTERROR_2_ERROR = "A02110";

    public final static String VERIFY_LEFTERROR_2_ERROR_M = "亲，项目剩余的金额不足一份了，您全买了吧";

    public final static String VERIFY_BUYALL_2_ERROR = "A02109";

    public final static String VERIFY_BUYALL_2_ERROR_M = "抱歉，标的剩余不足需购买全部！";

    public final static String VERIFY_BUYLIMIT_2_ERROR = "A02103";

    public final static String VERIFY_BUYLIMIT_2_ERROR_M = "抱歉，超过每人最大投资限额！";

    public final static String VERIFY_BUYLIMIT_100_ERROR = "A02104";

    public final static String VERIFY_BUYLIMIT_100_ERROR_M = "累加金额必须为100的整数倍";

    public final static BigDecimal bd100 = new BigDecimal(100);

    // 提现 相关
    public final static String CASH_CODE_1 = "M04001";

    public final static String CASH_CODE_MSG_1 = "您还未认证手机号码，请到网站去认证。";

    public final static String CASH_CODE_2 = "M04002";

    public final static String CASH_CODE_MSG_2 = "您还未设置密保，请到网站去设置密保。";

    public final static String CASH_CODE_3 = "M04003";

    public final static String CASH_CODE_MSG_3 = "您还未进行实名认证，请到网站去实名认证。";

    public final static String CASH_CODE_4 = "M04004";

    public final static String CASH_CODE_MSG_4 = "获取用户信息失败，请联系客服。";

    public final static String CASH_CODE_5 = "M04005";

    public final static String CASH_CODE_MSG_5 = "您还未绑定银行卡，请到网站去绑定银行卡。";

    public final static String CASH_CODE_6 = "M04006";

    public final static String CASH_CODE_MSG_6 = "获取绑定的银行卡失败，请联系客服。";

    public final static String CASH_CODE_7 = "M04007";

    public final static String CASH_CODE_MSG_7 = "请输入正确的提现金额(最小为分)。";

    public final static String CASH_CODE_8 = "M04008";

    public final static String CASH_CODE_MSG_8 = "提现金额超过最高";

    public final static String CASH_CODE_9 = "M04009";

    public final static String CASH_CODE_MSG_9 = "您的可用余额不足";

    public final static String CASH_CODE_10 = "M04010";

    public final static String CASH_CODE_MSG_10 = "支付密码校验失败，请重新输入。";

    public final static String CASH_CODE_11 = "M04011";

    public final static String CASH_CODE_MSG_11 = "提现失败，请联系客服。";

    //用户摇奖 add by 2014-9-2
    public final static String USERLOTTERY_CODE_12 = "M05001";

    public final static String USERLOTTERY_CODE_MSG_12 = "获取用户中奖信息失败。";

    public final static String USERLOTTERY_CODE_13 = "M05002";

    public final static String USERLOTTERY_CODE_MSG_13 = "是否全部摇奖字段为0否或1是。";

    public final static String USERLOTTERY_CODE_14 = "M05003";

    public final static String USERLOTTERY_CODE_MSG_14 = "此标不存在。";

    public final static String USERLOTTERY_CODE_15 = "M05004";

    public final static String USERLOTTERY_CODE_MSG_15 = "此标不是摇奖项目。";

    public final static String USERLOTTERY_CODE_16 = "M05005";

    public final static String USERLOTTERY_CODE_MSG_16 = "此项目摇奖已结束。";

    public final static String USERLOTTERY_CODE_17 = "M05006";

    public final static String USERLOTTERY_CODE_MSG_17 = "无摇奖机会。";

    public final static String USERLOTTERY_CODE_18 = "M05007";

    public final static String USERLOTTERY_CODE_MSG_18 = "服务器超时！";

    public final static String USERLOTTERY_CODE_19 = "M05008";

    public final static String USERLOTTERY_CODE_MSG_19 = "摇奖失败！";

    public final static String USERLOTTERY_LOAN_STATUS_CODE = "M05009";

    public final static String USERLOTTERY_LOAN_STATUS_MSG = "标的状态不正确";

    public final static String USERLOTTERY_PROMOTION_STATUS = "M05010";

    public final static String USERLOTTERY_PROMOTION_MSG = "不存在有效的活动";

    public final static String USERLOTTERY_SUCCESS0 = "M05011";

    public final static String USERLOTTERY_SUCCESS0_MSG = "没中奖";

    public final static String USERLOTTERY_SUCCESS1 = "M05012";

    public final static String USERLOTTERY_SUCCESS1_MSG = "中奖了";

    public final static String USERLOTTERY_SUCCESS11 = "M05013";

    public final static String USERLOTTERY_SUCCESS11_MSG = "已经中奖了，就不要再摇了";

    //充值 
    public static final String CHARGE_NOT_INVEST = "M06001";

    public static final String CHARGE_NOT_INVEST_M = "您的注册信息还不完善，请完善后再来充值。";

    public static final String CHARGE_NOT_OPEN = "M06002";

    public static final String CHARGE_NOT_OPEN_M = "很抱歉由于代扣通道暂时关闭，请您到网站去充值。";

    public final static String USER_NOT_VERIFY = "M06003";

    public final static String USER_NOT_VERIFY_M = "用户还未完成认证，需要完成认证才可充值。";

    public final static String CHARGE_AMOUNT_INVALID = "M06004";

    public final static String CHARGE_AMOUNT_INVALID_M = "充值金额有误";

    public final static String WITHHOLD_CHARGE_FAIL = "M06005";

    public final static String WITHHOLD_CHARGE_FAIL_M = "充值失败，未知错误。";

    //修改 提现银行卡
    public final static String MODIFY_CARD_HAS_ASSET = "M07001";

    public final static String MODIFY_CARD_HAS_ASSET_M = "很抱歉，暂时不可修改提现银行卡。请检查账户是否存在以下问题：<br>1.账户有正在投资的项目。<br>2.账户余额不为0或有未到账的提现。";

    public final static String MODIFY_CARD_IS_FAULT = "M07002";

    public final static String MODIFY_CARD_IS_FAULT_M = "操作出现异常，请稍后重试";

    public final static String MODIFY_CARD_IS_NOT_BIND = "M07003";

    public final static String MODIFY_CARD_IS_NOT_BIND_M = "您还没绑定过银行卡";

    public final static String MODIFY_CARD_IS_EXIST = "M07004";

    public final static String MODIFY_CARD_IS_EXIST_M = "您提交的银行卡信息与已绑定的不能相同";

    public final static String MODIFY_CARD_VERIFY_PHONE_FAULT = "M07006";

    public final static String MODIFY_CARD_VERIFY_PHONE_FAULT_M = "手机验证码验证失败";

    public final static String MODIFY_CARD_SUB_BANK_IS_NULL = "M07007";

    public final static String MODIFY_CARD_SUB_BANK_IS_NULL_M = "所属支行信息不能为空";

    public final static String MODIFY_CARD_IS_ERROR = "M07008";

    public final static String MODIFY_CARD_IS_ERROR_M = "修改银行卡出现错误，请稍后再试";

    public final static String MODIFY_CARD_IS_NOT_TO_BIND = "M07009";

    public final static String MODIFY_CARD_IS_NOT_TO_BIND_M = "您还没有填过银行卡等信息";

    //无效的标ID
    public final static String INVALID_LOAN_ID = "M01111";

    public final static String INVALID_LOAN_ID_M = "无效的标ID";

    public final static String INVALID_ENT_CODE = "M08001";

    public final static String INVALID_ENT_CODE_M = "专享码错误，请重新输入";

    public final static String IS_BINDED_ENT_CODE = "M08002";

    public final static String IS_BINDED_ENT_CODE_M = "专享码已经绑定过了";

    public final static String BINDED_ENT_CODE_IS_ERROR = "M08003";

    public final static String BINDED_ENT_CODE_IS_ERROR_M = "绑定企业专享码失败";

    //信贷系统通用错误码定义
    public final static String CREDIT_COMMON_CODE_ERROR = "E00000";

    public final static String CREDIT_COMMON_CODE_SUCCESS = "C00000";

    public final static String CREDIT_COMMON_CODE_PROCESSING = "P00000";

    public final static String CREDIT_COMMON_CODE_UNKNOWN = "R00000";
}
